﻿using System;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations.Schema;
using YiSha.Util;

namespace YiSha.Entity.SaleManage
{
    /// <summary>
    /// 创 建：admin
    /// 日 期：2019-12-04 22:06
    /// 描 述：产品实体类
    /// </summary>
    [Table("sale_product")]
    public class ProductEntity : BaseExtensionEntity
    {
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public long? ProductType { get; set; }
        /// <summary>
        /// 产品类型名称不映射数据库
        /// </summary>
        [NotMapped]
        public string  ProductTypeName { get; set; }

        /// <summary>
        /// ids
        /// </summary>
        [NotMapped]
        public string ProductTypeId { get; set; }

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public string ProductName { get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public string ProductModel { get; set; }
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public decimal? Price { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string ProductUnit { get; set; }

    }
}
